package com.neusoft.elmboot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neusoft.elmboot.mapper.FoodMapper;
import com.neusoft.elmboot.po.Food;
import com.neusoft.elmboot.service.FoodService;

@Service
public class FoodServiceImpl implements FoodService {

	@Autowired
	private FoodMapper foodMapper;

	@Override
	public List<Food> listFoodByBusinessId(Integer businessId) {
		return foodMapper.listFoodByBusinessId(businessId);
	}
	@Override
	public int delFoodById(Integer foodId) {
		return foodMapper.delFoodById(foodId);
	}
	@Override
	public int addFoodByBusinessId(Food food) {
		return foodMapper.addFoodByBusinessId(food);
	}
	@Override 
	public int changeFood(Food food) {
		return foodMapper.changeFood(food);
	}
	@Override
	public Food GetFoodById(Integer foodId) {
		return foodMapper.GetFoodById(foodId);
	}
}